
--[[

    slimui - Copyright (c) 2011 atom0s, All rights reserved.

    See Copyright notice in slimui.lua
    
]]--

class 'Object' { ... };

----------------------------------------------------------------------------------
-- func: Object.__init__
-- desc: Constructor called when this object is first created.
----------------------------------------------------------------------------------
function Object.__init__( self )
    self._object = nil;
end

----------------------------------------------------------------------------------
-- func: Object:Class
-- desc: Returns the class of this object.
----------------------------------------------------------------------------------
function Object:Class( )
    return object_getClassName( self._object );
end

----------------------------------------------------------------------------------
-- func: Object:Destroy
-- desc: Destroys this object.
----------------------------------------------------------------------------------
function Object:Destroy( )
    object_destroy( self._object );
    self._object = nil;
end



--[[ Debug information. ]]--------------------------------------------------------
if ( slimui:isdebug() == true ) then
    slimui:msg( '(Base) object.lua successfully loaded.' );
end